package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.data.DataComponent;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IDataComponentDao {
	public void save(DataComponent dataComponent);

	public void update(DataComponent dataComponent);

	public DataComponent queryById(long id);

	public DataComponent queryByUri(String uri);

	public List<DataComponent> queryAll();

	public PageBean<DataComponent> queryByPageNum(int pageNo)
			throws DBException;

}
